let arr = [1,2,3]
function handle(arr) {
    let map = new Map()
    for(let i in arr) {
        if (map.has(arr[i])) {
            return true
        }
        map.set(arr[i])
    }
    return false
}
let res = handle(arr)
console.log(res)